package com.kifas.model.xml;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author brainmaster
 * 
 */

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class PenerimaanModel implements Serializable {

	private static final long serialVersionUID = -3849267351987170094L;

	private Long idPenerimaan;

	private String nomorPenerimaan;

	private Long idPembelian;

	private Date tanggal;

	private String keterangan;

	private String nomorPo;

	private Set<PenerimaanDetailModel> penerimaanDetailModels;

	private String createdBy;

	private Date createdDate;

	public PenerimaanModel() {
	}

	public PenerimaanModel(Long idPenerimaan, String nomorPenerimaan, Long idPembelian, Date tanggal, String keterangan, String nomorPo,
			Set<PenerimaanDetailModel> penerimaanDetailModels, String createdBy, Date createdDate) {
		this.idPenerimaan = idPenerimaan;
		this.nomorPenerimaan = nomorPenerimaan;
		this.idPembelian = idPembelian;
		this.tanggal = tanggal;
		this.keterangan = keterangan;
		this.nomorPo = nomorPo;
		this.penerimaanDetailModels = penerimaanDetailModels;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public Long getIdPenerimaan() {
		return idPenerimaan;
	}

	public void setIdPenerimaan(Long idPenerimaan) {
		this.idPenerimaan = idPenerimaan;
	}

	public String getNomorPenerimaan() {
		return nomorPenerimaan;
	}

	public void setNomorPenerimaan(String nomorPenerimaan) {
		this.nomorPenerimaan = nomorPenerimaan;
	}

	public Long getIdPembelian() {
		return idPembelian;
	}

	public void setIdPembelian(Long idPembelian) {
		this.idPembelian = idPembelian;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}

	public String getNomorPo() {
		return nomorPo;
	}

	public void setNomorPo(String nomorPo) {
		this.nomorPo = nomorPo;
	}

	public Set<PenerimaanDetailModel> getPenerimaanDetailModels() {
		return penerimaanDetailModels;
	}

	public void setPenerimaanDetailModels(Set<PenerimaanDetailModel> penerimaanDetailModels) {
		this.penerimaanDetailModels = penerimaanDetailModels;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

}
